home *** CD-ROM | disk | FTP | other *** search
- /*
- This program is placed in the public domain by its author, William Couture.
- Copyright (c) 1986 by DDI. All Rights Reserved.
- */
-
- void gchar(char,color)
- int char,color;
- {
- if (color)
- grchar(char,color);
- else
- grchar(160,color); /* 160 = 32 (a space) + parity. See the CGRAPH
- documentation as to why this works. */
- }
-
- void gatchar(row,col,char,color)
- int row,col,char,color;
- {
- if (color)
- grchar(row,col,char,color);
- else
- grchar(row,col,160,color); /* 160 = 32 (a space) + parity. See the
- CGRAPH documentation as to why this
- works. */
- }
-
- void printbanner(row,col,msg,length,color)
- int row,col;
- int *msg;
- int length,color;
- /* display a row of graphics characters */
- /* Adding 128 (0x80) to the color will XOR draw the characters on
- top of the existing screen */
- {
- int i;
-
- i = 0;
- while (i < length)
- gatchar(row,col++,msg[i++],color);
- }
-
- void printcolumn(row,col,msg,length,color)
- int row,col;
- int *msg;
- int length,color;
- /* display a column of graphics characters */
- /* Adding 128 ($80) to the color will XOR draw the characters on
- top of the existing screen */
- {
- int i;
-
- i = 0;
- while (i < length)
- gatchar(row++,col,msg[i++],color);
- }
-